﻿using Neural;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NNTest
{
    
    
    /// <summary>
    ///This is a test class for TrainerTest and is intended
    ///to contain all TrainerTest Unit Tests
    ///</summary>
    [TestClass()]
    public class TrainerTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for TrainingExamples
        ///</summary>
        [TestMethod()]
        public void TrainingExamplesTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            ExampleSet expected = null; // TODO: Initialize to an appropriate value
            ExampleSet actual;
            target.TrainingExamples = expected;
            actual = target.TrainingExamples;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Momentum
        ///</summary>
        [TestMethod()]
        public void MomentumTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            target.Momentum = expected;
            actual = target.Momentum;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LearningRate
        ///</summary>
        [TestMethod()]
        public void LearningRateTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            target.LearningRate = expected;
            actual = target.LearningRate;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for HardMax
        ///</summary>
        [TestMethod()]
        public void HardMaxTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.HardMax = expected;
            actual = target.HardMax;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ErrorManager
        ///</summary>
        [TestMethod()]
        public void ErrorManagerTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            ErrorManager actual;
            actual = target.ErrorManager;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for EpochSize
        ///</summary>
        [TestMethod()]
        public void EpochSizeTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.EpochSize = expected;
            actual = target.EpochSize;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for EpochCount
        ///</summary>
        [TestMethod()]
        public void EpochCountTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.EpochCount;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DefaultErrorName
        ///</summary>
        [TestMethod()]
        public void DefaultErrorNameTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            target.DefaultErrorName = expected;
            Assert.Inconclusive("Write-only properties cannot be verified.");
        }

        /// <summary>
        ///A test for UpdateWeightAdjustments
        ///</summary>
        [TestMethod()]
        public void UpdateWeightAdjustmentsTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            target.UpdateWeightAdjustments();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for UpdateNetwork
        ///</summary>
        [TestMethod()]
        public void UpdateNetworkTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            Network network = null; // TODO: Initialize to an appropriate value
            target.UpdateNetwork(network);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Train
        ///</summary>
        [TestMethod()]
        public void TrainTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            Network network = null; // TODO: Initialize to an appropriate value
            target.Train(network);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RequestTermination
        ///</summary>
        [TestMethod()]
        public void RequestTerminationTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            target.RequestTermination();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetTraining
        ///</summary>
        [TestMethod()]
        public void GetTrainingTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            NeuronTraining expected = null; // TODO: Initialize to an appropriate value
            NeuronTraining actual;
            actual = target.GetTraining();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AddCalculator
        ///</summary>
        [TestMethod()]
        public void AddCalculatorTest1()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            ErrorCalculator calculator = null; // TODO: Initialize to an appropriate value
            target.AddCalculator(calculator);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddCalculator
        ///</summary>
        [TestMethod()]
        public void AddCalculatorTest()
        {
            Trainer target = new Trainer(); // TODO: Initialize to an appropriate value
            string name = string.Empty; // TODO: Initialize to an appropriate value
            ErrorCalculator calculator = null; // TODO: Initialize to an appropriate value
            target.AddCalculator(name, calculator);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Trainer Constructor
        ///</summary>
        [TestMethod()]
        public void TrainerConstructorTest()
        {
            Trainer target = new Trainer();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
